import logging
from sqlalchemy import *
from sqlalchemy.orm import *
from olap_model import *

logging.getLogger().setLevel(logging.DEBUG)

engine = create_engine('sqlite:///test.db')

Session = sessionmaker(bind=engine, autoflush=False, transactional=False)
session = Session()

prepare_schema(session)
import_time_dimension(session)
import_date_dimension(session, [2009,2010])
